package com.dys.entity;

/**
 * @className: com.dys.entity.Goods
 * @description: com.dys.entity
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/10/21 22:11
 */
public class Goods {
    private int id;
    private String name;
    private int price;
    private int stock;

    public Goods() {
    }

    public Goods(int id, String name, int price, int stock) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.stock = stock;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                '}';
    }
}
